package su.samcom.calc.model.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: Владислав
 * Date: 17.11.13
 * Time: 3:20
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "calc_samcom_su.property")
public class Property implements Serializable {

    private static final long serialVersionUID = -5768305899508978326L;

    private Long id;
    private String key;
    private String value;

    @Id
    @SequenceGenerator(name = "property_gen", sequenceName = "calc_samcom_su.property_seq", allocationSize = 1)
    @GeneratedValue(generator = "property_gen", strategy = GenerationType.SEQUENCE)
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "key", unique = true)
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Column(name = "value")
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
